package com.heima.model.admin.dtos;
import com.heima.model.common.validator.ValidatorAdd;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class AdUserDto {
    //用户名
    @NotNull(message = "账号不能为空", groups = {ValidatorAdd.class})
    private String name;
    //密码
    @NotNull(message = "密码不能为空", groups = {ValidatorAdd.class})
    private String password;
}
